﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;

namespace Ccit.OA.MsQuestion
{
    /// <summary>
    /// Qst_A2(调查问卷问题表)
    /// </summary>
    public class MsQuentions
    {
        #region 私有属性              
        private string _id;         //主键ID
        private string _qid;        //问卷Id
        private string _describe;   //描述
        private string _sorder;     //顺序
        private string _type;       //选项类型
        private string _opinions;   //是否可输入其他意见
        private string _number;     //选项每行显示个数
        private List<MsOptions> _lstOptions;
        private List<MsQuestionRecord> _lstRecord; //记录表信息
        private List<MsQuestionOptions> _lstMsOptions; //选项意见表
        #endregion
        #region 共有属性
        /// <summary>
        /// 主键ID
        /// </summary>
        public string id
        {
            set { _id = value; }
            get { return ((!string.IsNullOrEmpty(_id)) ? _id : ""); }
        }
        /// <summary>
        /// 问卷ID
        /// </summary>
        public string qid
        {
            set { _qid = value; }
            get { return ((!string.IsNullOrEmpty(_qid)) ? _qid : ""); }
        }
        /// <summary>
        /// 描述
        /// </summary>
        public string describe
        {
            set { _describe = value; }
            get { return ((!string.IsNullOrEmpty(_describe)) ? _describe : ""); }
        }
        /// <summary>
        /// 顺序
        /// </summary>
        public string sorder
        {
            set { _sorder = value; }
            get { return ((!string.IsNullOrEmpty(_sorder)) ? _sorder : ""); }
        }
        /// <summary>
        /// 选项类型
        /// </summary>
        public string type
        {
            set { _type = value; }
            get { return ((!string.IsNullOrEmpty(_type)) ? _type : ""); }
        }
        /// <summary>
        /// 是否可输入其他意见
        /// </summary>
        public string opinions
        {
            set { _opinions = value; }
            get { return ((!string.IsNullOrEmpty(_opinions)) ? _opinions : ""); }
        }
        /// <summary>
        /// 选项每行显示个数
        /// </summary>
        public string number
        {
            set { _number = value; }
            get { return ((!string.IsNullOrEmpty(_number)) ? _number : ""); }
        } 
        public List<MsOptions> Options
        {
            get { return _lstOptions; }
            set { _lstOptions = value; }
        }
        /// <summary>
        /// 记录表
        /// </summary>
        public List<MsQuestionRecord> Record
        {
            get { return _lstRecord; }
            set { _lstRecord = value; }
        }
        /// <summary>
        /// 选项意见表
        /// </summary>
        public List<MsQuestionOptions> MsOptions
        {
            get { return _lstMsOptions; }
            set { _lstMsOptions = value; }
        }
        #endregion
        #region method
        public MsQuentions()
        { }
        public MsQuentions(string sId, string sDescribe,string sOrder,string sType,string sOpinions,string sNumber)
        {
                 _id = sId;
                 _describe = sDescribe;   //描述
                 _sorder = sOrder;     //顺序
                 _type = sType;       //选项类型
                 _opinions = sOpinions;   //是否可输入其他意见
                 _number = sNumber;     //选项每行显示个数
        }
        #endregion
    }
}
